<?php

define('DS', DIRECTORY_SEPARATOR);
define('ROOT', realpath(dirname(__FILE__)) . DS);
define('CORE_PATH', ROOT . 'core' . DS);

require_once(CORE_PATH . 'loader.php');
loader();

try{
    if(!isset($_SESSION)) session_start();
    Bootstrap::run(new Request);
}
catch(Exception $e){
    echo $e->getMessage();
}

?>